<?php
/**
 * Railed
 * @package railed
 * @author Rob Frawley <robfrawley@inserrat.com>
 * @license GNU Public License v2
 * @version $Id: index.php 2 2007-02-28 07:48:04Z robfrawley $
 */

/* include paths config file */
include '../application/config/paths.php';

/* include general config file */
include DIR_CONFIG . 'general.php';

/* include database config file */
include DIR_CONFIG . 'database.php';

/* include functions file */
include DIR_FUNCTIONS . 'general.php';

/* set error reporting */
error_reporting(SYSTEM_ERRORLEVEL);

/* set default timezone */
date_default_timezone_set(SYSTEM_TIMEZONE);

try
{
  $Disbatcher = new Disbatcher();
  $Disbatcher->run();
}
catch(ExceptionAbstract $ExceptionAbstract)
{
  $ExceptionAbstract->displayErrorMessage();
}
?>